
/**
\file
Includes the relevant headers to use OpenGL.
\author Sean Tromans
*/

#ifndef	SUN_GL_HPP
#define	SUN_GL_HPP

#ifndef	GLEW_STATIC
#define	GLEW_STATIC
#endif

#include <GL/glew.h>

#if defined(_WIN32)
#include <GL/wglew.h>
#elif !defined(__APPLE__) || defined(GLEW_APPLE_GLX)
#include <GL/glxew.h>
#endif

namespace sun
{

	namespace detail
	{
		/**
		Helper function to enable or disable a GL state.
		@param state The state enum to set.
		@param enabled Whether the state is to be enabled or disabled.
		\author Sean Tromans
		*/
		void set_state( GLenum state, bool enabled );
	}
}

#endif	//SUN_GL_HPP
